<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Date</title>
		<script>
			var d=new Date();
			alert(d);
			console.log(d.toLocaleString());
			alert(d.toDateString());
			alert(d.toLocaleDateString());
			alert(d.getFullYear());
			alert("月份:"+d.getMonth());
			alert("天："+d.getDate());
			d.setMonth(15);
			alert(d);
		</script>
	</head>
	<body>
	</body>
</html>